package com.atguli.gulimall.member;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 远程调用别的服务
 *  首先引入open-feign
 *  编写一个远程接口 ，告诉sprongCloud这个接口需要调用远程服务
 *  然后接口里面的每一个方法都是远程调用的请求
 *  最后开启远程调用功能
 */
@MapperScan("com.atguli.gulimall.member.dao")
@SpringBootApplication
@EnableFeignClients(basePackages = "com.atguli.gulimall.member.feign")
@EnableDiscoveryClient
public class GulimallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimallMemberApplication.class, args);
    }

}
